const {
	createProxyMiddleware
} = require('http-proxy-middleware');
module.exports = {
	devServer: {
		disableHostCheck: true,
		proxy: {
			'/api': {
				target: 'http://app.flowark.biz/flow-chain/',
				changeOrigin: true,
				secure: false,
				ws: false,
				pathRewrite: {
					'^/api': ''
				}
			},
			"changeOrigin": true, //是否跨域，设置为true;(必须)
		}
	}
}